<template>
    <div>
        <el-card>
            <el-breadcrumb separator="/">
                <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>用户管理</el-breadcrumb-item>
                <el-breadcrumb-item>用户列表</el-breadcrumb-item>
            </el-breadcrumb>
            <el-table :data="userList" border style="width: 100%" height="690"
                :header-cell-style="{ background: '#409EFF', color: '#FFF' }">
                <el-table-column prop="doctorName" label="医生名称" width='200'></el-table-column>
                <el-table-column prop="doctorStatus" label="状态" width="100">
                    <template slot-scope="scope">
                        <el-tag type="success" v-if="scope.row.doctorStatus == 1">启用</el-tag>
                        <el-tag type="danger" v-else>禁用</el-tag>
                    </template>
                </el-table-column>
                <el-table-column prop="doctorTitle" label="职称"></el-table-column>
                <el-table-column prop="doctorDetail" label="简介"></el-table-column>
                <el-table-column label="科室" prop="departmentName"></el-table-column>
                <el-table-column label="操作" width="200">
                    <template slot-scope="scope">
                        <el-button size="small" icon="el-icon-edit" @click="edit(scope.row)">修改</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </el-card>
    </div>
</template>
<script>
export default {
    name: 'couInfo',
    data() {
        return {
            // 科室列表
            departmentList: [],
            userList: [],
            imageUrl: '',

        }
    },
    created() {

    },
    methods: {


        getList() {

            listDoctors().then(res => {
                if (res.flag) {
                    this.userList = res.data
                }
            })

        },


    }
}
</script>

<style lang="less" scoped></style>